home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / tls / tls049.distar.Z / tls049.distar / tmp / init.popper
Text File  |  1994-03-14  |  576b  |  21 lines

  1. :
  2.  
  3. echo "Added pop entries to /etc/services"
  4.  
  5. sed -e '/^pop.*109\//d' -e '/^pop.*110\//d' \
  6. -e '/^sunrpc.*111\/tcp/i\
  7. pop2        109/tcp        postoffice 2\
  8. pop        110/tcp        postoffice 3' /etc/services >/tmp/services.tmp
  9. cp /tmp/services.tmp /etc/services
  10.  
  11. echo "Added pop entry to /etc/inetd.conf"
  12.  
  13. sed -e '/^pop.*stream/d' -e '$a\
  14. pop    stream    tcp    nowait    root    /etc/popper popper
  15. ' /etc/inetd.conf >/tmp/inetd.conf.tmp
  16. cp /tmp/inetd.conf.tmp /etc/inetd.conf
  17.  
  18. PID=`ps -fu root|awk '/inetd.$/{print $2}'`
  19. echo "Sending SIGHUP to inetd process (pid=$PID) to reload configuration"
  20. kill -1 $PID
  21.